package com.auxgroup.hr.front.service.process.impl;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.auxgroup.hr.front.dao.domain.PsCWfXfrHdr;
import com.auxgroup.hr.front.dao.repository.PsCWfXfrHdrRepository;
import com.auxgroup.hr.front.dozer.IObjectMapper;
import com.auxgroup.hr.front.service.process.WfXfrHdrService;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年5月31日 下午10:00:00 
 * 工作移交审批流程service
 */
@Service("wfXfrHdrService")
public class WfXfrHdrServiceImpl implements WfXfrHdrService {
	
	
	@Resource(name = "dozerMapper")
	protected IObjectMapper objectMapper;
	
	@Autowired
	private PsCWfXfrHdrRepository psCWfXfrHdrRepository;

	@Override
	public PsCWfXfrHdr getWfXfrHdr(String cTransactionNbr) {
		return psCWfXfrHdrRepository.findOne(cTransactionNbr);
	}

	@Override
	public void save(PsCWfXfrHdr psCWfXfrHdr) {
		psCWfXfrHdrRepository.save(psCWfXfrHdr);
	}
}
 